package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.UserAddressDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/5/19 4:01 PM
 * @Version 1.0
 */
@FeignClient(value = "member-server",
        contextId = "address",
        configuration = OAuth2FeignConfig.class,
        path = "/userAddress")
public interface UserAddressFegin {

    @PostMapping("/saveUserAddress")
    boolean saveUserAddress(@RequestBody List<UserAddressDto> userAddressDtos);

}
